//<?php


$fid = M("Thread")->find('fid',array(
    'id'=>$p_data['tid']
));

$arr = explode(",",$this->_forum[$fid]['forumg']);

if(!array_search($this->_user['id'],$arr) && $p_data['uid'] != $this->_user['id'])
    return $this->json(array('error'=>false,'info'=>'你没有权限操作这个评论'));


$Post->del($id);
M("Thread")->update_int($p_data['tid'],'posts','-');
return $this->json(array('error'=>true,'info'=>'删除成功'));
